package com.jufa_3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LoginInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String openId;

    private LocalDateTime loginTime;

    private String ip;

    private String city;

    public LoginInfo(String openId, LocalDateTime loginTime,String ip, String city) {
        this.openId = openId;
        this.loginTime = loginTime;
        this.ip = ip;
        this.city = city;
    }
}
